When I get to the connect API I get FFFFFFFFh as a result. When I call WSAGetLastError I get 10049 as the error which is this according to MSDN:
Cannot assign requested address. The requested address is not valid in its context. This normally results from an attempt to bind to an address that is not valid for the local computer. This can also result from connect, sendto, WSAConnect, WSAJoinLeaf, or WSASendTo when the remote address or port is not valid for a remote computer (for example, address or port 0).
This error is related to the host and port which may be incorrect. Here is my data for this:
RemoteHost db "localhost",0
GetRequest db "GET /cmd.txt HTTP/1.0",0dh,0ah
db "Host: localhost",0dh,0ah,0dh,0ah,0
I have a feeling that it has to do with the format of the RemoteHost and port but I am uncertain.
Can anyone spot the error?
I look forward to any help I can get!
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum